package com.ljs.feign;

import com.ljs.entity.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "orderprovider")
public interface OrderFegin {
    @GetMapping("/order/insertOrder")
    public  void insert(@RequestBody Order order);
    @GetMapping("/order/sel/{uid}/{index}/{limit}")
    public List<Order> selOrder(@PathVariable("index")int index,@PathVariable("limit") int limit,@PathVariable("uid")int uid);
@GetMapping("/order/count/{uid}")
public int count(@PathVariable("uid")int uid);
}
